import axios from './index';

// 添加轮播图
export function addswipe(data) {
	return axios.post('/banner/add', data);
}
//获取轮播图
export function getswipe() {
	return axios.get('/banner/list');
}
//删除轮播图
export function deleteswpie(obj) {
	// return axios.get('/banner/delete?bannerid=' + data);
	return axios.get('/banner/delete', { params: obj });
}
//删除全部轮播图
export function deleteall() {
	return axios.get('/banner/removeAll');
}
